/**
 * 
 */
package com.mobipe.sutto.serverlogic;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author kohachiro
 *
 */
public class UserProxy {
	final int id;
	final String name;
	final Map<String, String> properties;
	final Object channel;	
	Room room;
	float x;
	float y;
	float z;
	/**
	 * 
	 */
	public UserProxy(int id,String name,Object channel) {
		properties = new ConcurrentHashMap<String, String>();
		this.id=id;
		this.name=name;
		this.channel=channel;
	}
	public int getId(){
        return id;
    }
	public String getName() {
		return name;
	}
	public Object getChannel() {
		return channel;
	}
	public Room getRoom() {
		return room;
	}
	public void addProperty(String key,String value) {
		properties.put(key, value);
	}
	public String getProperty(String key) {
		return properties.get(key);
	}	
	public void removeProperty(String key) {
		properties.remove(key);
	}	
}
